<div class="tms-main-page-function">
    <div class="main-content" style="height:50%">
        <div class="page-function">
            <ul class="wms-wbm-fun-left">
            </ul>
            <div class="wms-wbm-fun-right">
                <input type="text" placeholder="策略名称-->回车查询" ng-model="search.pyName" ng-keydown="searchListKeyDown($event)" class="search-input">
                <button class="layui-btn" ng-click="searchClick()">搜索</button>
                <button class="layui-btn" ng-click="refreshClick()"><i class="layui-icon">ဂ</i></button>
            </div>
        </div>
        <div class="otherForm" ng-show="otherForm">
        </div>
        <div class="layui-form scrollTable stockUnitForm">
            <div class="stockUnit_top">
                <div class="stockUnit_top_left">
                    <div class="layui-tab layui-tab-card">
                        <ul class="layui-tab-title">
                            <li class="layui-this">策略维护</li>
                        </ul>
                        <div class="layui-tab-content" style="height : 265px;">
                            <div class="layui-tab-item layui-show">
                                <div class="stockUnit_title">
                                    <button class="layui-btn" ng-click="addStockUnitStrategyClick()">新增</button>
                                    <button class="layui-btn" ng-click="updateStockUnitStrategyClick()">编辑</button>
                                    <button class="layui-btn" ng-click="deleteStockUnitStrategyClick()">删除</button>
                                </div>
                                <div class="stockUnit_content">
                                    <table class="layui-table wms_wbm_main_table serial stockUnitStrategy">
                                        <tbody>
                                            <tr>
                                                <th>
                                                    <input type="checkbox" name="" lay-skin="primary" lay-filter="allChoose">
                                                    <div class="layui-unselect layui-form-checkbox" lay-skin="primary">
                                                        <i class="layui-icon"></i>
                                                    </div>
                                                </th>
                                                <th>策略编码</th>
                                                <th>策略名称</th>
                                                <th>策略说明</th>
                                            </tr>
                                            <tr ng-repeat="stockUnitStrategy in stockUnitStrategyList" ng-click="selectItemClick(stockUnitStrategy)">
                                                <td>
                                                    <input type="checkbox" name="ckValue" ng-value="$index" lay-skin="primary" />
                                                    <div class="layui-unselect layui-form-checkbox" lay-skin="primary">
                                                        <i class="layui-icon"></i>
                                                    </div>
                                                </td>
                                                <td ng-bind="stockUnitStrategy.pyCode"></td>
                                                <td ng-bind="stockUnitStrategy.pyName"></td>
                                                <td ng-bind="stockUnitStrategy.pyRemark"></td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="stockUnit_top_right">
                    <div class="layui-tab layui-tab-card">
                        <ul class="layui-tab-title">
                            <li class="layui-this">条件设置</li>
                            <li>流向设置</li>
                            <li>库位分配设置</li>
                        </ul>
                        <div class="layui-tab-content" style="height : 265px;">
                            <div class="layui-tab-item layui-show">
                                <div class="stockUnit_title">
                                    <button class="layui-btn" ng-click="addConditionClick()">新增</button>
                                    <button class="layui-btn">删除</button>
                                </div>
                                <div class="stockUnit_content">
                                    <table class="layui-table wms_wbm_main_table serial stockUnitStrategy">
                                        <tbody>
                                        <tr>
                                            <th>
                                                <input type="checkbox" name="" lay-skin="primary" lay-filter="allChoose">
                                                <div class="layui-unselect layui-form-checkbox" lay-skin="primary">
                                                    <i class="layui-icon"></i>
                                                </div>
                                            </th>
                                            <th>序号</th>
                                            <th>选择字段</th>
                                            <th>运算符</th>
                                            <th>值</th>
                                        </tr>
                                        <tr ng-repeat="strategyCondition in strategyConditionList">
                                            <td>
                                                <input type="checkbox" name="ckValue" ng-value="$index" lay-skin="primary" />
                                                <div class="layui-unselect layui-form-checkbox" lay-skin="primary">
                                                    <i class="layui-icon"></i>
                                                </div>
                                            </td>
                                            <td ng-bind="$index + 1"></td>
                                            <td ng-bind="strategyCondition.pycType"></td>
                                            <td ng-bind="strategyCondition.pycOperatorCode"></td>
                                            <td ng-bind="strategyCondition.pycValue"></td>
                                        </tr>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                            <div class="layui-tab-item">
                                <div class="stockUnit_title">
                                    <button class="layui-btn" ng-click="addFlowtoClick()">新增</button>
                                    <button class="layui-btn">删除</button>
                                </div>
                                <div class="stockUnit_content">
                                    <table class="layui-table wms_wbm_main_table serial stockUnitStrategy">
                                        <tbody>
                                        <tr>
                                            <th>
                                                <input type="checkbox" name="" lay-skin="primary" lay-filter="allChoose">
                                                <div class="layui-unselect layui-form-checkbox" lay-skin="primary">
                                                    <i class="layui-icon"></i>
                                                </div>
                                            </th>
                                            <th>起始地</th>
                                            <th>目的地</th>
                                        </tr>
                                        <tr ng-repeat="strategyFlowto in strategyFlowtoList">
                                            <td>
                                                <input type="checkbox" name="ckValue" ng-value="$index" lay-skin="primary" />
                                                <div class="layui-unselect layui-form-checkbox" lay-skin="primary">
                                                    <i class="layui-icon"></i>
                                                </div>
                                            </td>
                                            <td ng-bind="strategyFlowto.pyfFromName"></td>
                                            <td ng-bind="strategyFlowto.pyfToName"></td>
                                        </tr>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                            <div class="layui-tab-item">
                                <div class="stockUnit_title">
                                    <button class="layui-btn" ng-click="addLocationClick()">新增</button>
                                    <button class="layui-btn">删除</button>
                                    <button class="layui-btn">生成规则</button>
                                </div>
                                <div class="stockUnit_content">
                                    <table class="layui-table wms_wbm_main_table serial stockUnitStrategy">
                                        <tbody>
                                        <tr>
                                            <th>
                                                <input type="checkbox" name="" lay-skin="primary" lay-filter="allChoose">
                                                <div class="layui-unselect layui-form-checkbox" lay-skin="primary">
                                                    <i class="layui-icon"></i>
                                                </div>
                                            </th>
                                            <th>分配库区</th>
                                            <th>分配库位开始排</th>
                                            <th>分配库位开始列</th>
                                            <th>分配库位结束排</th>
                                            <th>分配库位结束列</th>
                                        </tr>
                                        <tr ng-repeat="strategyLocation in strategyLocationList">
                                            <td>
                                                <input type="checkbox" name="ckValue" ng-value="$index" lay-skin="primary" />
                                                <div class="layui-unselect layui-form-checkbox" lay-skin="primary">
                                                    <i class="layui-icon"></i>
                                                </div>
                                            </td>
                                            <td ng-bind="strategyLocation.pylZoneCode"></td>
                                            <td ng-bind="strategyLocation.pylStartRow"></td>
                                            <td ng-bind="strategyLocation.pylEndRow"></td>
                                            <td ng-bind="strategyLocation.pylStartColumn"></td>
                                            <td ng-bind="strategyLocation.pylEndColumn"></td>
                                        </tr>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="stockUnit_down">
                <div class="layui-tab layui-tab-card">
                    <ul class="layui-tab-title">
                        <li class="layui-this">规则描述</li>
                    </ul>
                    <div class="layui-tab-content" style="height : 90px;">
                        <div class="layui-tab-item layui-show">默认宽度是相对于父元素100%适应的，你也可以固定宽度。</div>
                    </div>
                </div>
            </div>
        </div>

    </div>
</div>
